package org.crl.blogsystem.entity.dto;

import lombok.Data;
import org.crl.blogsystem.entity.Comment;
import org.crl.blogsystem.entity.dto.MediaDTO;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class BlogDTO {
    private Long id;
    private Long userId;
    private String username;
    private String avatar;
    private String content;
    private LocalDateTime createdAt;
    private Integer likesCount;
    private Integer privateKey;
    private Integer commentsCount;
    private List<MediaDTO> mediaList;
    private List<Comment> comments;
    private Boolean isMyself;
    private Boolean isFollowed;

    // 空构造器和带参构造器可根据需要保留
}
